{extend name="public:base"}
{block name='css'}
{/block}

{block name='body'}
<div class="view view-main white-navbar white-toolbar">
    <div data-name="home" class="page">

        <div class="navbar">
            <div class="navbar-inner">
                <div class="left"><a href="/user" class="external"><i class="iconfont icon-fanhui"></i></a></div>
                <div class="center"><span>个人信息</span></div>
                <div class="right"></div>
            </div>
        </div>

        <div class="page-content padding-bottom50 ">

            <div class="list me-info">
                <ul>
                    <li>
                        <a href="{:url('edit_head_img')}" class="item-content external" href="">
                            <div class="item-inner">
                                <div class="item-title">修改头像</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="{:url('edit_name')}" class="item-content external" href="">
                            <div class="item-inner">
                                <div class="item-title">修改姓名</div>
                                <div class="item-after">{:session('user.name')}<i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li>
                    <!-- <li>
                        <a href="{:url('edit_tel')}" class="item-content external" href="">
                            <div class="item-inner">
                                <div class="item-title">修改手机号</div>
                                <div class="item-after">{:session('user.tel')}<i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li> -->
                    <li>
                        <a href="{:url('edit_pwd')}" class="item-content external" href="">
                            <div class="item-inner">
                                <div class="item-title">修改密码</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="/method" class="item-content external" href="">
                            <div class="item-inner">
                                <div class="item-title">收款方式</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:;" onclick="logout();" class="item-content external" href="">
                            <div class="item-inner">
                                <div class="item-title">退出登录</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li>
                </ul>
            </div>

        </div>

    </div>
</div>
{/block}

{block name="js"}
<script>
    function logout() {
        $.post("{:url('logout')}", '1', function(data){
            messageToast(data.info);
            setTimeout(function(){
                window.location.href = "/"
            }, 1000);

        }, 'json');
    }
</script>
{/block}